Extension method to process the result of a server method operation without result value.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim source As IdeaBlade.EntityModel.InvokeServerMethodOperation
Dim onSuccess As Action
Dim onFail As Action(Of Exception)
Dim value As IdeaBlade.EntityModel.InvokeServerMethodOperation
value = OperationFns.OnComplete(source, onSuccess, onFail) |
Parameters
- source
- The InvokeServerMethodOperation returned from InvokeServerMethodAsync()
- onSuccess
- A callback to be called if the server method was successful.
- onFail
- A callback to be called if the server method failed.
Return Value
Returns the InvokeServerMethodOperation passed to the method's source parameter.
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also